import { Set } from './Set'

let set = new Set()

// console.log( set.add('abc') )
// console.log( set.add('abc') )
// console.log( set.add('cba') )
// console.log( set.add('nba') )
// console.log( set.add('mba') )

// console.log( set.values() )

// console.log(set.remove('mba'))
// console.log(set.remove('mba'))
// console.log(set.values())

// console.log( set.has('abc') )

// console.log( set.size() )

// console.log( set.clear() )

// console.log( set.size() )

let setA = new Set()
// setA.add('abc')
setA.add('cba')
setA.add('nba')
console.log('setA:', setA.values())

let setB = new Set()
setB.add('aaa')
setB.add('nba')
setB.add('cba')
console.log('setB:', setB.values())

let unionSet = setA.union(setB)
console.log('unionSet:', unionSet.values())

let intersectionSet = setA.intersection(setB)
console.log('intersectionSet', intersectionSet.values())

let differenceSet = setA.difference(setB)
console.log('differenceSet', differenceSet.values())

console.log('subset', setA.subset(setB))
console.log('subset', setA.subset(unionSet))